package cn.edu.ujn.finaltest.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.ujn.finaltest.dao.User;
import cn.edu.ujn.finaltest.util.Page;

public interface IUserService {
	int deleteByPrimaryKey(Integer userId);

    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);
    
    // 传递多个参数需要@Param
    public User selectByCodePwd(@Param("usercode") String usercode, @Param("password") String password);
    
    //查询产品总数
    public Integer selectUserListCount(User user);
    
    public Page<User> findUserList(Integer page, Integer rows, Integer user_id, String user_code,String user_name,String user_password,Integer user_state);
    
  //查询产品列表
    public List<User> findAll(User user);
}
